a = eval(input())
point = a * (a - 1) * (a - 2) * (a - 3) // 24
print("%d" % point)
